package com.budwk.app.sqfw.models;

import cn.hutool.core.util.IdUtil;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 报名表(SqfwRallySign)实体类
 *
 * @author makejava
 * @since 2023-11-12 23:08:23
 */

@Data
@Table("public.sqfw_rally_sign")
public class SqfwRallySign implements Serializable {
    private static final long serialVersionUID = -92652314296359146L;
    /**
     * 主键
     */

    @Name
    @Prev(els=@EL("$me.nextId()"))
    @Column(value ="id")
    private String  id;
    @Column(value ="rally_id")
    private String rallyId;
    /**
     * 特殊标志
     */
    @Column(value ="special_mark")
    private String specialMark;
    /**
     * 名称
     */
    @Column(value ="name")
    private String name;
    /**
     * 性别
     */
    @Column(value ="gender")
    private String gender;
    /**
     * 生日
     */
    @Column(value ="birthday")
    private Date birthday;
    /**
     * 电话
     */
    @Column(value ="phone")
    private String phone;
    /**
     * 省份证号
     */
    @Column(value ="card_id")
    private String cardId;
    /**
     * 网格
     */
    @Column(value ="grid")
    private String grid;
    /**
     * 省份
     */
    @Column(value ="province")
    private String province;
    /**
     * 市
     */
    @Column(value ="city")
    private String city;
    /**
     * 区
     */
    @Column(value ="district")
    private String district;
    /**
     * 街道
     */
    @Column(value ="county")
    private String county;
    /**
     * 社区
     */
    @Column(value ="community")
    private String community;

    @Column(value ="create_date")
    private Date createDate;

    @Column(value ="sign_falg")
    private Integer signFalg;


    @Column("info_json")
    @ColDefine(type = ColType.TEXT)
    private String infoJson;




    private String rallyName;

    private String dataDynamic;

    private String dept;
    private String date;
    private String signFalgString;
    private String age;
    private Long activityFunds;

    public String nextId() {
        return IdUtil.getSnowflake(1, 1).nextIdStr();

    }

    private String num;

    private String remark = "";
}

